package sin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import sin.dao.TeacherDao;
import sin.entity.Teacher;
import sin.service.TeacherService;

@Component("teacherService")
public class TeacherServiceImpl implements TeacherService {

	@Autowired
	private TeacherDao teacherDao;

	public Teacher getById(String id) {
		return teacherDao.getById(id);
	}

	public void saveTeacher(Teacher teacher) {
		teacherDao.saveTeacher(teacher);
	}

	public void deleteById(String id) {
		teacherDao.deleteById(id);
	}
}
